/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconEdit: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M603.168 188.48a141.76 141.76 0 0 1 200.384-6.08l3.072 2.976a148.608 148.608 0 0 1 3.136 206.944L426.048 800H832a32 32 0 0 1 3.744 63.776L832 864H224a64 64 0 0 1-64-64v-115.296a64 64 0 0 1 17.408-43.872z m-22.592 117.312L224 684.672V800h114.176l357.12-379.488-114.72-114.72z m179.104-76.8a77.76 77.76 0 0 0-109.92 3.328l-25.312 26.88 114.72 114.688 24-25.44c29.984-31.84 30.56-80.96 2.24-113.504l-4.032-4.32z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconEdit.defaultProps = {
  size: 18,
};

export default IconEdit;
